@color_1: #36a0a3;
@color_2: #555;
@color_3: #888;
@color_4: #bbb;
@color_5: #ccc;
@color_6: #cecece;
@color_7: #eee;
@color_8: #fff;
@color_9: #dc0000;
@color_10: #ececec;
@color_11: #000;
@color_12: #3e3e3e;
@color_13: #fb8534;
@color_14: #999;
@color_15: #f7f7f7;
@color_16: #c5c5c5;
@color_17: #f90;
@color_18: #000;
@color_19: #ff5e3c;
@color_20: #a7a7a7;

.font_family_yahei() {
	font-family: "\5FAE\8F6F\96C5\9ED1", "\5B8B\4F53";
}

body {
	font-size: 12px;
	line-height: 1.5;
}

a {
	text-decoration: none;
}

.hidden {
	display: none;
}

@page_width: 950px;

@page_hd_height: 35px;
@page_hd_sm_width: 300px;
@page_hd_recharge_width: 106px;
@page_hd_exit_width: 97px;
#page-hd {
	height: @page_hd_height;
	line-height: @page_hd_height;
	background-color: @color_7;
	color: @color_3;
	text-align: center;

	a {
		color: @color_3;

		&:hover {
			text-decoration: none;
		}
	}
}

#page-hd-wrap {
	margin: 0 auto;
	text-align: left;
	width: @page_width;
	overflow: hidden;

	.sm-left {
		float: left;
		width: @page_hd_sm_width;
		text-align: right;

		.figure {
			color: @color_19;
			font-weight: bold;
		}
	}

	.recharge-btn {
		@width: 66px;
		@height: 19px;

		padding: (@page_hd_height - @height) / 2 (@page_hd_recharge_width - @width) / 2;
		float: left;

		a {
			background-color: @color_1;
			width: @width;
			height: @height;
			line-height: @height;
			display: block;
			color: @color_8;
			text-align: center;

			&:hover {
				text-decoration: none;
			}
		}
	}
}

#welcome {
	@padding_left: 7px;

	float: left;
	width: @page_width - @padding_left - @page_hd_sm_width - @page_hd_recharge_width - @page_hd_exit_width;
	padding-left: @padding_left;

	.figure {
		color: @color_19;
		font-weight: bold;
	}
}

#exit {
	@height: 12px;
	@padding_left: 14px;
	@border_width: 1px;

	float: left;
	border-left: @border_width solid;
	width: @page_hd_exit_width - @border_width - @padding_left;
	height: @height;
	margin-top: (@page_hd_height - @height) / 2;
	padding-left: @padding_left;

	a {
		margin-top: (@height - @page_hd_height) / 2;
		display: block;
	}

}

@page_bd_nav_width: 120px;
@page_bd_min_height: 800px;
#page-bd {
	text-align: center;
	height: @page_bd_min_height;
}

#page-bd-wrap {
	margin: 0 auto;
	text-align: left;
	width: @page_width;
	overflow: hidden;
}

#nav {
	@border_bottom_height: 5px;
	float: left;
	width: @page_bd_nav_width;
	position: relative;
	height: @page_bd_min_height - @border_bottom_height;
	border-bottom: @border_bottom_height solid @color_6;
	text-align: center;

	background: url(http://www.suge123.com/assets/v1/img/nav_bg.png) 0 0 repeat-y transparent;

	.tabs-navs {
		margin-bottom: 36px;
		text-align: left;
	}

	.tabs-nav {
		@height: 41px;
		width: @page_bd_nav_width;
		height: @height;

		a {
			line-height: @height;
			font-size: 14px;
			.font_family_yahei();
			color: @color_8;
			padding-left: 26px;
			display: block;
		}
	}

	.tabs-nav-active {
		@height: 47px;
		background: url(http://www.suge123.com/assets/v1/img/nav_active.png) 0 0 no-repeat transparent;
		height: @height;
		a {
			line-height: @height;
			color: @color_8;
		}
	}

	.ad {
		position: absolute;
		right: 15px;
		bottom: 7px;
		color: @color_8;
		text-align: right;
		width: 72px;
	}
}

#nav-wrap {
	width: @page_bd_nav_width - 2px;
}

#logo {
	width: @page_bd_nav_width;
	height: 89px;
	margin: 0 auto 37px;
}

#content {
	@margin_left: 25px;
	@border_bottom_height: 2px;
	float: left;
	width: @page_width - @page_bd_nav_width - @margin_left;
	margin-left: @margin_left;
	height: @page_bd_min_height - @border_bottom_height;
	border-bottom: @border_bottom_height solid @color_5;
}

@content_hd_height: 104px;
#content-hd {
	height: @content_hd_height;
	border-bottom: 2px solid @color_5;
	margin-bottom: 10px;
	overflow: hidden;
}

#user-avatar {
	@len: 80px;

	padding: (@content_hd_height - @len) / 2;
	width: @len;
	height: @len;
	float: left;
	margin: 0 20px;
	overflow: hidden;

	img {
		width: @len;
		height: @len;
	}
}

#user-info {
	float: left;
	padding-top: 15px;
	color: @color_3;
}

#user-name {
	font-size: 18px;
	.font_family_yahei();
	margin-bottom: 2px;
	color: @color_2;
	font-weight: bold;
}

#user-shop {
	margin-bottom: 6px;
}

#user-stats {
	float: right;
	margin-right: 50px;
	padding-top: 53px;
	text-align: right;
	color: @color_3;

	.figure {
		color: @color_19;
		font-weight: bold;
	}
}

#content-bd {
	.tabs-content {
		overflow: hidden;
		display: none;
	}

	.tabs-content-active {
		display: block;
	}
}

#home-block-1 {
	border-bottom: 2px solid @color_5;
	height: 144px;
	padding-left: 4px;

	.mod {
		float: left;
		width: 154px;
		padding-top: 12px;
		text-align: center;

	}

	.mod-hd {
		color: @color_3;
	}

	.mod-bd {
		height: 63px;

		.figure {
			color: @color_19;
			font-size: 22px;
			.font_family_yahei();
			line-height: 63px;
		}
	}

	.mod-ft {
		.btn {
			a {
				margin: 0 auto;
				color: @color_8;
				background-color: @color_1;
				display: block;
				width: 66px;
				height: 20px;
				line-height: 20px;
				font-size: 12px;
			}
		}
	}
}

#notice {
	// TODO
	width: 332px;
	float: right;
	padding-top: 23px;

	ul {
		border-left: 1px solid;
		padding-left: 23px;

		li {
			margin-bottom: 6px;

			a {
				color: @color_3;
			}
		}
	}
}

#home-services {
	padding: 22px 0 0 6px;

	.service {
		margin-bottom: 15px;
		overflow: hidden;
	}

	.service-active {
		cursor: pointer;
	}

	.service-hd {
		@padding_top: 10px;

		float: left;
		padding-top: @padding_top;
		width: 195px;
		height: 100px - @padding_top;
		text-align: left;
		background-color: @color_1;
		color: @color_8;

		a {
			color: @color_8;
		}

		.title {
			padding-left: 17px;
			margin-bottom: 2px;
			font-size: 16px;
			.font_family_yahei();
			font-weight: bold;
		}

		.desc {
			padding: 0 20px 0 18px;
			height: 36px;
			overflow: hidden;
			margin-bottom: 8px;
		}

		.act {
			padding-right: 12px;
			text-align: right;
		}
	}

	.service-bd {
		float: left;
		margin-left: 6px;

		border: 3px solid @color_20;
		height: 94px;
		width: 592px;

		ul {
			overflow: hidden;
		}

		.service-switch {
			float: left;
			width: 148px;
			padding-top: 27px;
			text-align: center;
			background: url(http://www.suge123.com/assets/v1/img/service_switch.png) -71px 7px no-repeat transparent;

			.title {
				color: @color_2;
				font-size: 14px;
				.font_family_yahei();
				margin-bottom: 2px;
				font-weight: bold;
			}

			.desc {
				color: @color_4;
				text-align: left;
				width: 120px;
				margin: 0 auto;
			}
		}

		.service-switch-on {
			background-position: 79px 7px;

			.title {
				color: @color_1;
			}
		}
	}

	.mod-disabled {
		background-color: @color_4;

		a {
			cursor: default;
		}
	}
}

#delivery-list {
	float: left;
	width: 599px;

	li {
		margin-bottom: 8px;
	}

	.mod {
		border: 5px solid @color_10;
		padding-left: 11px;
		height: 99px;
		position: relative;
	}

	.mod-hd {
		padding: 9px 0 7px;
		width: 408px;
		border-bottom: 1px solid @color_10;
		line-height: 20px;
		height: 20px;

		h4 {
			float: left;
			color: @color_2;
			font-weight: bold;
			font-size: 14px;
			.font_family_yahei();
			text-indent: 1px;
			width: 85px;
		}

		.btn-wrap {
			float: left;
			margin-left: 28px;
			width: 67px;
		}

		.btn {
			float: left;
			width: 67px;
			color: @color_8;
			text-align: center;
			background-color: @color_1;
		}

		.tip {
			color: @color_9;
			margin-left: 12px;
			float: left;
		}
	}

	.mod-active {
		.mod-hd {
			.btn {
				background-color: @color_5;
			}

			.btn-wrap {
				width: 90px;
				background: url(http://www.suge123.com/assets/v1/img/service_switch.png) 70px -1px no-repeat transparent;
			}
		}

	}

	.mod-bd {
		padding-top: 9px;
		color: @color_3;

		.sm-content {
			width: 396px;
			height: 36px;
			overflow: hidden;
		}
	}

	.mod-ft {
		position: absolute;
		bottom: 3px;
		right: 7px;
		text-align: right;

		.stats {
			color: @color_4;

			.figure {
				color: @color_19;
			}
		}

		.btn {
			margin: 0 20px 13px 0;
			color: @color_9;
			display: block;
		}
	}


}

#delivery-tip {
	margin-top: 8px;
	background-color: @color_10;
	padding: 6px 9px;
	color: @color_1;

	li {
		list-style-type: square;
		list-style-position: outside;
	}
}

#delivery-sample {
	@width: 185px;
	width: @width;
	float: right;

	img {
		width: @width;
		height: 360px;
	}
}

.modal-mask {
	position: absolute;
	left: 0;
	top: 0;
	opacity: 0.3;
	background-color: @color_18;
}

.modal {
	@width: 695px;
	@paddingLeft: 6px;

	position: absolute;
	padding: 26px 7px 7px 6px;
	width: @width - @paddingLeft * 2;
	background-color: @color_1;

	.modal-wrap {
		background-color: @color_8;
		padding: 14px 7px 20px 6px;
		position: relative;
	}

	.modal-close {
		position: absolute;
		top: 5px;
		right: 14px;
		color: @color_8;
		display: block;
	}
}

#delivery-modal {
	color: @color_12;

	.modal-hd {
		@height: 28px;
		background-color: @color_10;
		height: @height;
		padding-left: 14px;
		overflow: hidden;

		.tabs-nav {
			float: left;
			margin-left: 20px;
			height: 12px;
			margin-top: (@height - 12px) / 2;
			padding-right: 9px;
			border-right: 1px solid @color_11;

			a {
				display: block;
				margin-top: -3px;
				color: @color_11;
			}
		}

		.tabs-nav-last {
			border-right: none;
		}

		.tabs-nav-active {
			a {
				font-weight: bold;
			}
		}
	}

	.modal-bd {
		padding-top: 7px;

		.tabs-content {
			display: none;
		}

		.tabs-content-active {
			display: block;
		}

	}
}

#sm-setting-form {
	.btn {
		position: absolute;
		bottom: 13px;
		right: 31px;
		height: 36px;
		line-height: 36px;
		width: 114px;
		display: block;
		background-color: @color_1;
		color: @color_8;
		text-align: center;
	}

	.sm-desc {
		color: @color_1;
		padding-left: 27px;
		margin-bottom: 9px;
	}

	.sm-condition {
		@height: 22px;

		height: @height;
		line-height: @height;
		margin-bottom: 8px;
		padding-left: 27px;

		input {
			margin: 0 8px 0 13px;
			width: 30px;
			text-indent: 6px;
		}
	}

	.sm-template {
		.sm-template-title {
			margin-bottom: 8px;
			padding-left: 27px;

			.figure {
				color: @color_13;
			}
		}

		.sm-template-list {
			@width: 550px;

			margin: 0 0 15px 87px;
			padding: 16px 0 16px 9px;
			width: @width - 2px - 9px;
			border: 1px dashed @color_14;
			background-color: @color_15;

			li {
				overflow: hidden;

				input {
					width: 14px;
					height: 14px;
					float: left;
					margin: 6px 0 0 1px;
				}
				label {
					float: left;
					margin-left: 9px;
					line-height: 2;
					width: 359px;
				}

				&.custom-tpl {
					@height: 100px;

					.custom-tpl-main {
						@width: 330px;
						@padding: 24px;
						float: left;
						width: @width + @padding;
						position: relative;

						label {
							width: auto;
						}

						.counter {
							position: absolute;
							right: 0;
							top: 0;
							display: block;
							line-height: 2;

							.figure {
								font-weight: bold;
							}
						}

						textarea {
							width: @width;
							height: @height;
							border: 1px solid @color_5;
							margin-left: @padding;
							line-height: 2;
						}
					}

					.custom-tpl-sub {
						@width: 162px;
						float: left;
						margin-left: 10px;
						width: @width;

						.custom-tpl-sub-hd {
							line-height: 2;
						}

						.custom-tpl-placeholders {
							width: @width - 2px;
							height: @height - 2px;
							border: 1px solid @color_5;
							background-color: #fff;

							a {
								line-height: 2;
								color: @color_12;
							}
						}
					}
				}
			}
		}

		.sm-template-add {
			@width: 550px;

			margin: 0 0 24px 87px;
			width: @width - 2px;
			border: 1px dashed @color_14;
			background-color: @color_15;
			text-align: center;
			height: 35px;
			line-height: 35px;
		}

		.sm-template-shop {
			margin-left: 87px;
			height: 22px;
			line-height: 22px;
		}
	}
}

#sm-blacklist-form {
	.form-hd {
		color: @color_1;
		padding-left: 20px;
		margin-bottom: 22px;
	}

	.form-bd {
		overflow: hidden;
		height: 352px;
	}
}

#sm-blacklist-editor {
	float: left;

	h6 {
		padding-left: 35px;
		margin-bottom: 9px;
		line-height: 26px;
	}

	textarea {
		margin: 0 0 20px 40px;
		width: 241px;
		height: 145px;
		border: 1px solid @color_5;
		line-height: 2;
	}

	p {
		color: @color_14;
		padding-left: 35px;
		width: 237px;

		em {
			color: @color_2;
			line-height: 2;
		}
	}

	.btns {
		margin-top: 10px;
		overflow: hidden;
	}

	.btn {
		float: right;
		height: 36px;
		line-height: 36px;
		width: 114px;
		display: block;
		background-color: @color_1;
		color: @color_8;
		text-align: center;
	}
}

#sm-blacklist-list {
	float: left;
	margin-left: 51px;
	height: 350px;
	overflow: scroll;

	table {
		border: 1px solid @color_6;

	}

	td, th {
		height: 22px;
		line-height: 22px;
	}

	.even {
		background-color: @color_15;
	}

	.buyer {
		width: 199px;
	}

	.act {
		width: 59px;
		text-align: center;
	}

	thead {
		th {
			background-color: @color_7;
			color: @color_3;
			text-align: center;
		}

		.buyer {
			border-right: 1px solid @color_6;
		}
	}

	tbody {
		.buyer {
			padding-left: 20px;
			border-top: 1px solid @color_6;
			border-right: 1px solid @color_6;
		}

		.act {
			border-top: 1px solid @color_6;
		}

	}

	.even {
		background-color: @color_15;
	}
}

#recharge {
	.tabs-navs {
		padding-left: 16px;
		@height: 28px;
		background-color: @color_10;
		overflow: hidden;
		height: 22px;
		padding-top: @height - 22px;

		.tabs-nav {
			float: left;
			display: block;
			font-weight: bold;
			padding: 0 7px;
			line-height: 22px - 1px;
			border: 1px solid @color_10;
			margin-right: 4px;

			a {
				float: left;
				display: block;
				color: @color_2;
				line-height: 22px - 1px;
			}
		}

		.tabs-nav-active {
			background: @color_8;
			border-color: @color_16;
		}
	}

	.mod-bd {
		.tabs-content {

		}

	}
}

#recharge-plans {
	padding-top: 28px;

	.plans {
		text-align: center;
		width: (160 * 5px) - 1px;
		overflow: hidden;
		color: @color_2;

		ul {
			width: 1000px;
		}
	}

	.plan {
		width: 160px;
		float: left;
		background: url(http://www.suge123.com/assets/v1/img/plan_bg.png) right 27px no-repeat transparent;
	}

	.plan-title {
		width: 118px;
		font-size: 18px;
		.font_family_yahei();
		color: @color_11;
		margin: 0 auto 11px;
		background: url(http://www.suge123.com/assets/v1/img/plan_icon.png) 30px 3px no-repeat transparent;
	}

	.plan-secondary {
		color: @color_5;
	}

	.plan-sm {
		font-size: 14px;
		.font_family_yahei();

		.figure {
			color: @color_9;
		}

		input {
			width: 60px;
		}
	}

	.plan-price {
		font-size: 14px;
		.font_family_yahei();
		margin-bottom: 24px;

		.figure {
			color: @color_9;
		}
	}

	.plan-unitprice {
		color: @color_19;
		margin-bottom: 6px
	}

	.recharge-btn {
		display: block;
		margin: 0 auto;
		width: 67px;
		line-height: 20px;
		text-align: center;
		background-color: @color_1;
		color: @color_8;
	}

	#plan-1 {
		.plan-title {
			background-position: 80px 1px;
		}
	}

	#plan-2 {
		.plan-title {
			background-position: -37px 1px;
		}
	}

	#plan-3 {
		.plan-title {
			background-position: -157px 1px;
		}
	}

	#plan-4 {
		.plan-title {
			background-position: -279px 1px;
		}
	}

	#plan-custom {
		.plan-title {
			background: none;
		}
	}

}

#sm-records {
	padding: 23px 58px 0;
}

#sm-records-filter {
	border-bottom: 1px solid @color_7;

	p {
		height: 22px;
		line-height: 22px;
		overflow: hidden;
		margin-bottom: 8px;
	}

	select {
		margin-right: 10px;
	}

	.btn {
		display: inline-block;
		*display: inline;
		width: 66px;
		height: 22px;
		text-align: left;
		text-indent: -9999px;
		overflow: hidden;
		background: url(http://www.suge123.com/assets/v1/img/search.png) 0 0 no-repeat transparent;
	}
}

#sm-records-from,
#sm-records-to,
#sm-records-reciever {
	width: 100px;
	line-height: 14px;
	height: 14px;
	padding: 3px 0;
	border-width: 1px;
	text-indent: 5px;
}

#sm-records-reciever {
	width: 130px;
}

#sm-records-to {
	margin-right: 60px;
}

#sm-records-list {
	margin-top: 10px;
	padding: 0 6px;

	colgroup {
		.buyer {
			width: 135px;
		}
		.time {
			width: 88px;
		}
		.status,
		.service,
		.count {
			width: 66px;
		}
		.content {
			width: 259px;
		}
	}

	p {
		display: block;
	}

	&.active {
		table {
			display: block;
		}
		p {
			display: none;
		}
	}

	table {
		border: 1px solid @color_6;
		display: none;
	}

	.td-wrap {
		height: 22px;
		line-height: 22px;
		overflow: hidden;
	}

	.content {
		.td-wrap {
			text-overflow: ellipsis;
			white-space: no-wrap;
			width: 240px;
		}
	}

	.buyer {
		.td-wrap {
			text-overflow: ellipsis;
			white-space: no-wrap;
			width: 120px;
		}
	}

	.even {
		background-color: @color_15;
	}

	.buyer {
		.td-wrap {
			text-indent: 5px;
		}
	}

	.time {
		text-align: center;
	}

	.content {
		.td-wrap {
			text-indent: 5px;
		}
	}

	.status {
		text-align: center;
	}

	.count {
		text-align: center;
	}

	.service {
		text-align: center;
	}

	thead {
		th {
			background-color: @color_7;
			color: @color_3;
			text-align: center;
			border-right: 1px solid @color_6;
		}

		.count {
			border-right: none;
		}
	}

	tbody {
		td {
			border-top: 1px solid @color_6;
			border-right: 1px solid @color_6;
		}

		.count {
			border-right: none;
		}

	}

	.even {
		background-color: @color_15;
	}

	tfoot {
		td {
			border-top: 1px solid @color_6;
			text-align: right;
			padding-right: 15px;

			a {
				color: @color_2;
			}
		}
	}
}

#sm-records-list {

}

#sm-records-ft {
	margin-top: 10px;
}

#pay-modal {
	width: 275px;
	height: 236px;
	.modal-wrap {
		padding: 0;
		width: 275px;
		height: 236px;
	}

	.modal-bd-wrap {
		padding-top: 51px;
		text-align: center;
	}
}

#pay-warning {
	font-size: 14px;
	.font_family_yahei();
	margin-bottom: 16px;
}

#pay-tip {
	color: @color_14;
	margin-bottom: 20px;

	.figure {
		color: @color_17;
	}
}

#pay-btn {
	width: 153px;
	overflow: hidden;
	margin: 0 auto;

	.btn {
		background: url(http://www.suge123.com/assets/v1/img/pay_btn.png) 0 0 no-repeat transparent;
		width: 79px;
		height: 20px;
		float: left;
		display: block;
	}

	.link {
		display: block;
		float: right;
		line-height: 20px;
		color: @color_14;
	}
}

#page-ft {
	width: @page_width;
	margin: 0 auto;
	text-align: right;
	padding-top: 2px;

	p {
		line-height: 30px;
		color: @color_2;
	}
}
